<!DOCTYPE html>

<html lang="${lang}">
<head>
	<title>#{get 'title' /}</title>
	<meta charset="${_response_encoding}">
	<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/reset.css'}">
	<link rel="stylesheet" type="text/css" media="screen" href="@{'/public/stylesheets/admin.css'}" />
	#{get 'moreStyles' /}
	<link rel="shortcut icon" type="image/png" href="@{'/public/images/favicon.ico'}" />
	<script src="@{'/public/javascripts/jquery-1.6.4.min.js'}" type="text/javascript" charset="${_response_encoding}"></script>
	#{get 'moreScripts' /}
</head>
<body id="crud">
	<div id="header">
		<h1 id="admin_title">Administration Transat</h1>	
		<a href="@{Secure.logout}"><div id="admin_logout">Déconnexion</div></a>
		<a href="@{Application.index}"><div id="retour_site">Retour au site</div></a>			
	</div>
		

#{if request.actionMethod != 'index'}
            <div id="crudBreadcrumb">
                #{crud.navigation /}
            </div>
#{/if}

#{if flash.success}
            <div class="crudFlash flashSuccess">
                ${flash.success}
            </div>
#{/if}
#{if flash.error || error}
            <div class="crudFlash flashError">
                ${error ?: flash.error}
            </div>
#{/if}

        <div id="crudContent">
#{doLayout /}
        </div>
    </body>
</html>
